package com.zwh.modules.goods.dao;

import org.apache.ibatis.annotations.Mapper;

import com.zwh.modules.goods.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangwenhe
 * @since 2020-10-27
 */
@Mapper
public interface GoodsDao extends BaseMapper<Goods> {

    /**
     * 商品减库存
     * @param goods
     * @return
     */
    long reduceStock(Goods goods);
}
